package com.ctms.system.service;

import com.ctms.system.domain.*;

import java.util.List;
import java.util.Map;

public interface StudentService {
    //查询所有
    List<UserDO> selectAllStudent(Map<String,Object> params);
    int count(Map<String,Object> params);
    String getClassNameById(Integer id);
    String getCourseNameById(Integer id);
    int getClassIdByName(String className);

    int insertStudent(UserDO userDO);
    int selectMaxIdByTime();
    //插入中间表
    int insertClassStudent(ClassStudentDO classStudentDO);
    int insertCourseStudent(CourseStudentDO courseStudentDO);

    //修改
    UserDO selectById(Integer userId);
    //修改
    int updateStudent(UserDO userDO);
    int deleteClassStudent(Integer userId);
    int updateClassStudent(ClassStudentDO classStudentDO);

    //删除
    int deleteStudent(Integer userId);

    List<ClassDO> getAllClass();

    List<CourseDO> getAllCourse();

    //查询所有学生
    List<UserDO> getAllStudent();
    //通过班级获取学生
    List<UserDO> getStudentByClass(String studentClass);

    //查询所有班长
    List<String> selectAllMonitor();
}
